package com.fpinjava.functions.exercise02_10;

public class FunctionExamples {

  public static <A, B, C> Function<A, Function<B, C>> curry(Function<Tuple<A, B>, C> f) {
    //入参 Tuple<A, B> -> C
    //返回  A-> (B,C)
    return (A a) ->(B b) -> f.apply(new Tuple<>(a, b));
  }
}
